package org.dromara.system.domain.bo;

import org.dromara.system.domain.WbProvince;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.io.Serializable;

/**
 * 省份业务对象 wb_province
 *
 * @author Lion Li
 * @date 2024-04-12
 */
@Data
@AutoMapper(target = WbProvince.class, reverseConvertGenerate = false)
public class WbProvinceBo implements Serializable {

    /**
     * 省份ID
     */
    @NotNull(message = "省份ID不能为空", groups = { EditGroup.class })
    private Long provinceId;

    /**
     * 省份名称
     */
    @NotBlank(message = "省份名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String provinceName;

    /**
     * 邮政编码
     */
    private String zipCode;;

    /**
     * 父级id
     */
    private Long fatherId;
    /**
     * 1 省份 、 2 市 、 3 区县
     */
    private Integer type;

}
